
input_file = open('input/wmv_to_mp4.txt', mode="r", encoding="utf-8")
output_file = open('output/wmv_to_mp4.txt', mode='w', encoding='utf-8')

template = 'ffmpeg -i "%s" "%s.mp4"'

for line in input_file:
    row = line.rstrip()
    out = template % (row, row[:-4])
    print(out)
    output_file.write(out + '\n')
